package com.baox.agridata.synchronous.dao;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baox.agridata.synchronous.entity.TXDRHatcheryEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TXDRHatcheryMapper {


    /**
     * 通过主键查询孵化场是否存在
     *
     * @param mid
     * @return
     */
    @DS("sichuanc")
    TXDRHatcheryEntity selectTXDRHatcheryById(@Param("mid") String mid);


    /**
     * 插入孵化场数据
     *
     * @param txdrHatcheryEntity
     * @return
     */
    @DS("sichuanz")
    Integer insertIntoTXDRHatchery(TXDRHatcheryEntity txdrHatcheryEntity);


    /**
     * 同步四川孵化场的数据到成都系统
     *
     * @return
     */
    @DS("sichuanc")
    List<TXDRHatcheryEntity> selectTXDRHatcheryDataToChengDu(@Param("startTime") String startTime);


}
